package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduSubject;
import com.atguigu.eduservice.entity.subject.OneSubject;
import com.atguigu.eduservice.entity.subject.TwoSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author zhaolie
 * @since 2020-12-07
 */
public interface EduSubjectService extends IService<EduSubject> {

    /**
     * 添加课程信息
     * @param file 课程信息文件
     * @param subjectService
     */
    void saveSubject(MultipartFile file, EduSubjectService subjectService);

    /**
     * 课程列表
     * @return 带二级分类的一级列表
     */
    List<OneSubject> listSubject();

}
